home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
SourceCode
/
GameKit
/
gamekit-1
/
AnimatedView.m
< prev
next >
Wrap
Text File
|
1995-06-12
|
614b
|
46 lines
#import <gamekit/gamekit.h>
@implementation AnimatedView
- initFrame:(const NXRect *)frm // initialize instance
{
[super initFrame:frm];
[self allocateGState];
animator = [[Animator alloc] initChronon:0.05 adaptation:0.0 target:self
action:@selector(autoUpdate:) autoStart:NO eventMask:0];
return self;
}
- autoUpdate:sender
{
return self;
}
- start:sender
{
[animator startEntry];
return self;
}
- stop:sender
{
[animator stopEntry];
return self;
}
- windowWillClose:sender
{
[self stop:self];
return self;
}
- free
{
[[animator stopEntry] free];
return [super free];
}
@end